package com.scheduler.backend.po;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor

@Entity
@Table(name = "resource")
public class Resource {

    @Id
    @Column(name = "resource_id")
    private String resourceId;

    @Column(name = "resource_name")
    private String resourceName;

    @Column(name = "resource_num")
    private Integer resourceNum;

    @Column(name = "resource_type")
    private String resourceType;

    @Column(name = "group_id")
    private String groupId;

    @Column(name = "project")
    private String project;

    @Column(name = "attached_resource")
    private String attachedResource;

    @Column(name = "deleted")
    private Integer deleted = 0;

}
